package com.freight.user.service;


import com.freight.core.base.FreightBaseService;
import com.freight.core.common.vo.SearchVo;
import com.freight.user.dto.DriverInfoDto;
import com.freight.user.entity.DriverUser;
import com.freight.user.vo.DriverAllPicId;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 司机用户信息表接口
 *
 * @author huyingtai
 */
public interface DriverUserService extends FreightBaseService<DriverUser, Long> {


    DriverUser saveDriverUser(DriverInfoDto driverInfoDto);

    void saveDriverInfo(DriverInfoDto driverInfoDto );





    /**
     * 多条件分页获取
     *
     * @param driverUser
     * @param searchVo
     * @param pageable
     * @return
     */
    Page<DriverUser> findByCondition(DriverUser driverUser, SearchVo searchVo, Pageable pageable);


    DriverUser findByUserId(Long userId);

    DriverUser findByVehicleId(Long vehicleId);




    DriverAllPicId getDriverPicId(Long userId);

}